﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Diagnostics;

namespace MyWcfRestLib
{
    public class TestService : WcfService
    {
        public TestService(int port) : base(port) { }

        protected override string ServiceName
        {
            get { return "Calculator"; }
        }

        protected override Type ServiceType
        {
            get { return typeof(CalcService); }
        }

        protected override void AddTheService()
        {
            Debug.Assert(null != ServiceHost);

            // Add application endpoint
            ServiceHost.AddServiceEndpoint(typeof(ICalculator), new WSHttpBinding(), "");
        }

    }
}
